package com.zzyang.aop.demo.rpc.producer;

import com.zzyang.aop.demo.rpc.User;
import com.zzyang.aop.demo.rpc.UserService;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @author zhuoziyang
 * @date 2021/5/19 22:03
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public String say(String name) {
        return name;
    }

    @Override
    public String getName(User user) {
        return user.getName();
    }

    @Override
    public String getName(String name, User user) {
        return name + user.getName();
    }

    @Override
    public String getName() {
        return "getName()";
    }

}
